package com.geline.cloud.exception;

/**
 * @author: mengxin
 * @date: 2022/5/11 14:21
 */
public class NotLoginException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    protected final String message;

    public NotLoginException() {
        this.message = "未登录！";
    }

    public NotLoginException(String message) {
        this.message = message;
    }

    public NotLoginException(String message, Throwable e) {
        super(message, e);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
